Skip to content

feat: eslint 캐시 설정 및 lint-staged jest 적용 #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2024

Conversation

HBSPS
Copy link
Contributor

@HBSPS HBSPS commented May 17, 2024

  • eslint 캐시 설정
  • jest lint-staged 적용
"lint-staged": {
  "*.{ts,tsx}": [
    "eslint --cache --cache-location ./.cache/.eslintcache",
    "prettier --cache --write",
    "jest --passWithNoTests"
  ]
},

--passWithNoTests 옵션의 경우 해당하는 tsx와 ts에 해당하는 테스트 코드가 없어도 PASS 되는 옵션이므로 추후 모든 tsx와 ts에 테스트 코드를 강제하기 위해서는 해당 옵션을 제거하면 됨

@HBSPS HBSPS added the feature label May 17, 2024
@HBSPS HBSPS requested a review from d0422 May 17, 2024 08:22
@HBSPS HBSPS self-assigned this May 17, 2024
Copy link
Member

@d0422 d0422 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@HBSPS HBSPS merged commit a440b2b into Rapiders:main May 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants